﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using vashSMJ;
public class PhaseStateOwner :StateOwnerBase
{
    private static PhaseStateOwner instance; 
    private PhaseStateOwner(){
        //制作单例
        curState = new FightPhaseState();
    }
    public static PhaseStateOwner getInstance(){
        if(instance == null){
            instance = new PhaseStateOwner();
        }
        return instance;
   }

}
public class DrawPhaseState : StateBase
{
    public override void OnStateEnter(){
        Debug.Log("进入抽卡阶段");
    }

    public override void OnStateExit(){
        Debug.Log("退出抽卡阶段");
    }
}

public class MainPhaseState1 : StateBase
{
    public override void OnStateEnter(){
        Debug.Log("进入主要阶段1");
    }

    public override void OnStateExit(){
        Debug.Log("退出主要阶段1");
    }
}

public class FightPhaseState : StateBase
{
    public override void OnStateEnter(){
        Debug.Log("进入战斗阶段");
    }

    public override void OnStateExit(){
        Debug.Log("退出战斗阶段");
    }
}
